package org.an.demo.test;

import android.os.Bundle;
import android.view.MotionEvent;
import org.an.demo.R;
import org.an.demo.view.MyLinearLayout;
import org.an.ku.base.BaseActivity;

/**
 * Created by Fcy on 2016/10/15.<br/>
 */
public class ScrollerActivity extends BaseActivity {

  @Override protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_scroller);

    //findViewById(R.id.btn).setOnClickListener(new View.OnClickListener() {
    //  @Override public void onClick(View v) {
    //    ToastUtil.toast(MyApplication.getInstance(), "哈啊哈");
    //  }
    //});
  }

  @Override public boolean dispatchTouchEvent(MotionEvent ev) {
    //System.out.println(
    //    "=========== ScrollerActivity dispatchTouchEvent= " + MyLinearLayout.getAction(ev));
    return super.dispatchTouchEvent(ev);
  }

  @Override public boolean onTouchEvent(MotionEvent event) {
    //System.out.println(
    //    "=========== ScrollerActivity onTouchEvent= " + MyLinearLayout.getAction(event));
    return super.onTouchEvent(event);
  }
}
